package 双向链表;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class Test {
    //杨辉
   public static List<List<Integer>> func(int n) {
       ArrayList<Integer>  arrayList = new ArrayList<>();
       ArrayList<Integer>  arrayList1 = new ArrayList<>();
       List<List<Integer>>  A = new ArrayList<>();
       A.add(arrayList);
       A.add(arrayList1);
       arrayList1.add(1);
       arrayList.add(2);
       int[][] array = new int[6][];
       array[0] = new int[6];
       array[1] = new int[7];
       
       return A;
   }
    public static void main(String[] args) {
        LinkedList<Integer> list=new LinkedList<>();

    }
    public static void main2(String[] args) {
        MyLinkedList myLinkedList=new MyLinkedList();
        myLinkedList.addLast(0);
        myLinkedList.addLast(12);
        myLinkedList.display();
        System.out.println("===========");
        myLinkedList.removeAllKey(0);
        myLinkedList.display();
    }
    public static void main1(String[] args) {
        MyLinkedList myLinkedList=new MyLinkedList();
        myLinkedList.addFirst(1);
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(3);
        myLinkedList.addFirst(4);
        myLinkedList.display();
        myLinkedList.addLast(1);
        myLinkedList.addLast(2);
        myLinkedList.addLast(3);
        myLinkedList.addLast(4);
        myLinkedList.display();
        myLinkedList.addIndex(5,888);
        myLinkedList.display();
        myLinkedList.remove(888);
        myLinkedList.display();

    }
}
